import { createRouter,createWebHashHistory } from "vue-router"
import Home from '../views/Home.vue'
import My from '../views/My.vue'
import Tz from '../views/Tz.vue'
import Tabbar from "../components/common/Tabbar.vue"
import Login from "../views/Login.vue"
import Address from "../views/Address.vue"
const base = import.meta.env.VTTE_BASE_URL || '/'
const router = createRouter({
    history:createWebHashHistory(base),
    routes:[
        {
           path:'/',
           redirect:'/tabber' 
        },
        {
            path:'/tabber',
            name:'Tabber',
            component:Tabbar
        },
        {
            path:'/home',
            name:'Home',
            component:Home
        },
        {
            path:'/shopping',
            name:'Shopping',
            component:() =>import('../views/Shopping.vue'),
        },
        {
            path:'/live',
            name:'Live',
            component:() =>import('../views/Live.vue'),
        },
        {
            path:'/my',
            name:'My',
            component:My
        },
        {
            path:'/tz',
            name:'Tz',
            component:Tz
        },
        {
            path:'/login',
            name:'Login',
            component:Login
        },
        {
            path:'/address',
            name:'Address',
            component:Address
        }
    ],
})
export default router